
const mysql = require('mysql')
module.exports = function () {
   let connection = mysql.createConnection({
        host:"127.0.0.1",
        user:'root',
        password:'123456',
        port:'3306',
        database:'personal_blog'
    })
    connection.connect()
    return connection
}

